﻿using System;
using Newtonsoft.Json;
using System.ComponentModel.DataAnnotations.Schema;
using YiSha.Util;

namespace YiSha.Entity.QixingManage
{
    /// <summary>
    /// 创 建：admin
    /// 日 期：2024-12-28 15:27
    /// 描 述：实体类
    /// </summary>
    [Table("knowledge_posts")]
    public class KnowledgePostsEntity : BaseEntity
    {
        /// <summary>
        /// 标题
        /// </summary>
        /// <returns></returns>
        public string title { get; set; }
        /// <summary>
        /// 发布者ID
        /// </summary>
        /// <returns></returns>
        [JsonConverter(typeof(StringJsonConverter))]
        public long? user_id { get; set; }
        /// <summary>
        /// 文字描述
        /// </summary>
        /// <returns></returns>
        public string content { get; set; }
        /// <summary>
        /// 封面图片
        /// </summary>
        /// <returns></returns>
        public string cover_image { get; set; }
        /// <summary>
        /// 浏览次数
        /// </summary>
        /// <returns></returns>
        public int? view_count { get; set; }
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public int? state { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        /// <returns></returns>
        [JsonConverter(typeof(DateTimeJsonConverter))]
        public DateTime? created_at { get; set; }
        /// <summary>
        /// 更新时间
        /// </summary>
        /// <returns></returns>
        [JsonConverter(typeof(DateTimeJsonConverter))]
        public DateTime? updated_at { get; set; }

        public long? tenant_id { get; set; }
    }
}
